package com.hycreate.platform.modules.product;

import org.hibernate.validator.constraints.Length;

import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 产品Entity
 * @author hoader
 * @version 2017-01-09
 */
public class SfProduct extends DataEntity<SfProduct> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String content;		// 简介
	private String enContent;		// 英文简介
	private String status;      //产品的状态
	private String age ;        //产品年代
	private String shipMentCount; //产品的累计发货量
	private String productDescription; //产品的说明
	private String elementDescription; //配件的说明
	
	private String productPicURL;  //产品的图片
	
	private String projectId;  //产品所属项目的id
	
	private String existImage;   //是否有图片
	
	public SfProduct() {
		super();
	}

	public SfProduct(String id){
		super(id);
	}

	@Length(min=0, max=64, message="编码长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getEnContent() {
		return enContent;
	}

	public void setEnContent(String enContent) {
		this.enContent = enContent;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getShipMentCount() {
		return shipMentCount;
	}

	public void setShipMentCount(String shipMentCount) {
		this.shipMentCount = shipMentCount;
	}

	public String getProductDescription() {
		return productDescription;
	}

	public void setProductDescription(String productDescription) {
		this.productDescription = productDescription;
	}

	public String getElementDescription() {
		return elementDescription;
	}

	public void setElementDescription(String elementDescription) {
		this.elementDescription = elementDescription;
	}

	public String getProductPicURL() {
		return productPicURL;
	}

	public void setProductPicURL(String productPicURL) {
		this.productPicURL = productPicURL;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getExistImage() {
		return existImage;
	}

	public void setExistImage(String existImage) {
		this.existImage = existImage;
	}

	
	
}